<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Test Properties</title>
    </h:head>
    <h:body>
        <h:form id="dbdump">
            <p:dataTable var="adv" value="#{advertController.advertList()}" paginator="true" rows="10"  
                         paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"  
                         rowsPerPageTemplate="5,10,15,25,50,100">
                <p:column>
                    #{adv.address}
                </p:column>
            </p:dataTable>
        </h:form> 
        <h:form id="buttons">
            <h:commandButton value="Init" action="#{addressLookup.initStreets()}"/>
            <h:commandButton value="Gen Data" action="#{addressLookup.genAdvs()}"/>
            <p:inputText value="#{addressLookup.genCount}"/>
            <h:commandButton value="Drop" action="#{addressLookup.clearAreas()}"/>
            <h:commandButton value="DropAdvs" action="#{addressLookup.clearAdvs()}"/>
        </h:form>
    </h:body>
</html>

